#include "led.h"

void led_init( )
{
    GPIO_InitTypeDef        GpioInitStructer;
    RCC_APB2PeriphClockCmd(LED_CLK, ENABLE );
    GpioInitStructer.GPIO_Speed = GPIO_Speed_10MHz;
    GpioInitStructer.GPIO_Mode = GPIO_Mode_Out_PP;
    GpioInitStructer.GPIO_Pin = LED_PIN;
    GPIO_Init( LED_PORT, &GpioInitStructer );
    GPIO_SetBits( LED_PORT, LED_PIN );
}
